@extends('admin.layout')
@section('content')
 <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                广告位设置
                <small>右侧</small>
            </h1>
            
        </section>

        <!-- Main content -->
        <section class="content">
        <ul class="timeline">
            <li>
                  <i class="fa fa-camera bg-purple"></i>
                  <div class="timeline-item">
                    @if(session('info'))
                            <div class="alert alert-success alert-dismissable">
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                                <h4><i class="icon fa fa-warning"></i>提示</h4>
                                 <ul>
                                    {{ session('info') }}
                                 </ul>
                                </div>                              
                            @endif  
                    <h3 class="timeline-header">最佳宽度310px</h3>
                    <div class="timeline-body" style="height: 400px;">
                            <!-- 第一张大图 -->
                             <form action="{{ url('/admin/ad/add') }}" class="col-md-3" enctype="multipart/form-data" method="post">   
                             {{ csrf_field() }} 
                             <div style="position: absolute;float: left;">
                               <img style="width: 310px;" src="{{ url('/uploads') }}/{{ $data -> adimg }}" alt="右侧广告位" class="margin">
                               <span style="margin-left: 60px;">链接地址：{{ $data -> url }}</span>
                             </div>                        
                                
                              <div style="position: relative;float: left;margin:20px 0px 0px 340px; ">
                                 <a style="margin-left: 10px;margin-right: 10px;color:black;">URL:</a><input type="text" value="{{ old('url') }}" name="url">
                                <input type="file" class="btn-sm" name="adimg" value="{{ old('adimg') }}">
                                
                                <input type="submit" value="上传" style="margin-left: 10px;">
                              </div>

                            </form>
                            
                    </div>
                  </div>
                </li>
        </ul>
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->

@endsection